package top.vains.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author vains
 * @since 2020-02-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("角色权限类，用来连接角色与权限的枢纽类")
public class RolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增ID", dataType = "Integer", example = "0")
    private Integer id;

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id", dataType = "Integer", example = "0")
    private Integer pid;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id", dataType = "Integer", example = "0")
    private Integer roleId;


}
